package drds.binlog.protocol.protocol_proto;

/**
 * Created by ibm on 2018/10/4.
 */
public interface PacketOrBuilder extends
        // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Packet)
        com.google.protobuf.MessageOrBuilder
{

    /**
     * <code>int32 magic_number = 1;</code>
     */
    int getMagicNumber();

    /**
     * <code>int32 version = 2;</code>
     */
    int getVersion();

    /**
     * <code>.com.alibaba.otter.canal.protocol.PacketType type = 3;</code>
     */
    int getTypeValue();

    /**
     * <code>.com.alibaba.otter.canal.protocol.PacketType type = 3;</code>
     */
    PacketType getType();

    /**
     * <code>.com.alibaba.otter.canal.protocol.Compression compression = 4;</code>
     */
    int getCompressionValue();

    /**
     * <code>.com.alibaba.otter.canal.protocol.Compression compression = 4;</code>
     */
    Compression getCompression();

    /**
     * <code>bytes body = 5;</code>
     */
    com.google.protobuf.ByteString getBody();

    public Packet.MagicNumberPresentCase getMagicNumberPresentCase();

    public Packet.VersionPresentCase getVersionPresentCase();

    public Packet.CompressionPresentCase getCompressionPresentCase();
}
